package com.ln.store.service;

import java.sql.SQLException;

import com.ln.store.domain.User;

public interface UserService {
	
	/**
	 * 注册用户
	 * @return
	 */
	public void	userRegister(User user) throws SQLException;
	
	/**
	 * 激活用户
	 * @param code
	 * @return
	 */
	public boolean userActive(String code) throws SQLException;
	
	/**
	 * 登录
	 * @param user
	 * @return
	 * @throws SQLException
	 */
	public User userLogin(User user) throws SQLException;
}
